<template>
	<!-- 距离200券 差多少-->
	<div class="getTicket">
		<div class="cancel">
			<div class="cancel_img" @click="cancel">
				<img src="https://image.soole.com.cn/cancel.png" alt="">
			</div>
		</div>
		<div class="ticketInfo">
			<div class="ticketInfo_text">
				<div class="text1">
					<div class="text1_img">
						<img src="https://image.soole.com.cn/0020c703-564e-4a11-9018-541b7bdf930b" alt="">
					</div>
				</div>
				<div class="text2">
					<div class="text2_img">
						<!-- <img src="https://image.soole.com.cn/sydsje.png" alt=""> -->
						<p>仅剩10元</p>
					</div>
					<div class="text2_progress">
						<van-progress
						color="#FFEA01" 
						:percentage="50" 
						 pivot-text=""
						stroke-width="8" />
					</div>
					
					
				</div>
				
				<div class="text3">购物券可直接当现金消费<br>快来帮帮我</div>
				<div class="text4">
					<button data-v-240b3c1f="" 
					class="van-button van-button--default van-button--normal van-button--round" 
					style=" background: rgb(253, 228, 1); border-color: rgb(253, 228, 1);">
						<span data-v-240b3c1f="" class="van-button__text">帮助好友即可获得购物券</span>
					</button>
				</div>
				<div class="text5">搜了农庄官方回馈，助力好友领购物券</div>
			</div>

		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		mounted() {
			
		},
		methods:{
			cancel(){
				this.$emit('cancel');
			},
		}
		
	}
</script>

<style lang="scss" scoped>
	.getTicket {
		width: 375px;

		.ticketInfo {
			background-image: url('https://image.soole.com.cn/helpFriend.png');
			background-repeat: no-repeat;
			background-size: 100%;
			text-align: center;
			width: 100%;
			height: 385px;
			position: relative;

			.ticketInfo_text {
				position: absolute;
				left: 0px;
				top: 68px;
				right: 0px;
				bottom: 36px;
				margin: 0 auto;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				height: 205px;
				width: 285px;
			}

			.text1 {
				display: flex;
				justify-content: center;
				.text1_img{
					width: 56px;
					height: 56px;
					border-radius: 100%;
					overflow: hidden;
					border: 2px solid #F6A826;
					img{
						width: 100%;
						height: 100%;
					}
				}
			}

			.text2 {
				font-size: 12px;
				color: #FF2B3D;
				width: 100%;
				padding:22px 46px;
				.text2_progress{
					width: 147px;
					margin: 0 auto;
				}
				.text2_img{
					display: flex;
					justify-content: flex-end;
					p{
						width: 61px;
						background-image: url('https://image.soole.com.cn/sydsje.png');
						background-repeat: no-repeat;
						background-size: 100% 100%;
						padding: 3px 5px 12px 5px;
						margin-bottom: 4px;
					}
				}
			}

			.text3 {
				font-size: 18px;
				color: #FBDB01;
				margin-bottom: 22px;
			}

			.text4 {
				color: #FF000B;
				margin-bottom: 12px;
				.van-button--normal {
					font-size: 18px;
					padding: 0px 29px;
					color: #FF000B;
				}
				

			}
			.text5 {
				font-size: 13px;
				color: #FBDB01;
			}

		}

		.cancel {
			width: 327px;
			display: flex;
			justify-content: flex-end;
		}

		.cancel_img {
			width: 36px;
			height: 36px;

			img {
				width: 100%;
				height: 100%;
			}
		}
	}
</style>
